#!/bin/bash

echo "Testing Rust War3Proxy fixes..."

# Check if the project compiles
echo "Checking compilation..."
cd /home/gzc/projects/rust/gitCode/rust_war3_proxy
cargo check --quiet

if [ $? -eq 0 ]; then
    echo "✓ Compilation successful"
else
    echo "✗ Compilation failed"
    exit 1
fi

# Check if the project builds
echo "Checking build..."
cargo build --quiet

if [ $? -eq 0 ]; then
    echo "✓ Build successful"
else
    echo "✗ Build failed"
    exit 1
fi

echo "All checks passed! The Rust War3Proxy fixes are ready."